package cn.cmft.jc.transform.joiner;

import java.util.Arrays;

public class CollectedTable {
    private String objName;
    private String database;
    private String tableName;
    private String[] columns;

    public CollectedTable(String objName, String database, String tableName, String[] columns) {
        this.objName = objName;
        this.database = database;
        this.tableName = tableName;
        this.columns = columns;
    }

    public String getObjName() {
        return objName;
    }

    public void setObjName(String objName) {
        this.objName = objName;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String[] getColumns() {
        return columns;
    }

    public void setColumns(String[] columns) {
        this.columns = columns;
    }

    @Override
    public String toString() {
        return "CollectedTable{" +
                "objName='" + objName + '\'' +
                ", database='" + database + '\'' +
                ", tableName='" + tableName + '\'' +
                ", columns=" + Arrays.toString(columns) +
                '}';
    }
}
